<%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2021/1/21
  Time: 16:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%!
   double pi=3.14159;
   double getVolume(int r){
       return pi*r*r*r*4/3;
   }
%>
<%
    int i=100;
    double tiji=getVolume(i);
%>p
<h1>球的体积是<%=tiji%></h1>
</body>
</html>
